package aplikacja;

import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import trackexplorer.views.EditDirsView;
import trackexplorer.views.MapView;
import trackexplorer.views.ShowView;
import trackexplorer.views.TrackView;

public class Perspective implements IPerspectiveFactory{

    public void createInitialLayout(IPageLayout layout){
        IFolderLayout folder = layout.createFolder("TrackExplorer",
            IPageLayout.RIGHT, 0.6f, layout.getEditorArea());
        folder.addView(MapView.ID);
        folder.addView(TrackView.ID);
        folder.addView(EditDirsView.ID);

        IFolderLayout folder1 = layout.createFolder("TrackExplorer1",
            IPageLayout.BOTTOM, 0.6f, "TrackExplorer");
        folder1.addView(ShowView.ID);

        layout.getViewLayout(MapView.ID).setCloseable(false);
        layout.getViewLayout(TrackView.ID).setCloseable(false);
        layout.getViewLayout(ShowView.ID).setCloseable(false);
        layout.getViewLayout(EditDirsView.ID).setCloseable(false);
    }
}
